﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Video.aspx.cs" Inherits="News_video"
    MasterPageFile="~/Main.master" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="Wsitech.Model" %>
<%@ Import Namespace="Wsitech.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>视频-联想控股官方网站</title>
    <!--news-->
    <link href="/!css/news.css" rel="stylesheet" type="text/css" />
    <!--news-->
    <!--视频类别选项卡的切换-->
    <script type="text/javascript">
        $(function () {
            var subid = getQueryString("subid");
            $('.videos_titel li').hover(function () {
                $(this).addClass("vhover");
            }, function () {
                $(this).removeClass("vhover");
            }).each(function () {
                if (this.id == subid) {
                    $(this).addClass("vselected");
                }
                else {
                    $(this).removeClass("vselected");
                }
            });
            if (subid == "") {
                $('.videos_titel li').eq(0).addClass("vselected");
            }
        }); 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    <div class="main">
        <div class="main_left">
            <dl>
                <dt><a href="/News/Report.aspx?sitemapid=580998c2-76df-4da1-8807-4fab3e249758">媒体报道</a></dt>
            </dl>
            <dl>
                <dt><a href="/News/NewsList.aspx?sitemapid=9b458c66-3923-4a93-986f-eb62db2b4692">公司动态</a></dt>
            </dl>
            <dl>
                <dt><a href="/News/NewsList.aspx?sitemapid=f4d900fb-e71e-4c78-96e4-68378066640b">新闻稿</a></dt>
            </dl>
            <dl>
                <dt><a class="selected" href="/News/Video.aspx?sitemapid=f0909e9d-e4ca-4312-a994-b9e2eeaa0e8a">
                    视频</a></dt>
            </dl>
            <dl>
                <dt><a href="/News/NewTopics.aspx">公司专题</a></dt>
            </dl>
        </div>
        <div class="main_right">
            <p>
                <img src="/!images/draft_pic.jpg" /></p>
            <p class="pagenavi">
                <a href="../Pages/Index.aspx">首页</a> > <a href="../News/Index.aspx">新闻中心</a> > 视频列表</p>
            <div class="videos_titel">
                <ul>
                    <%foreach (SiteMapInfo item in siteMapList)
                      {
                    %>
                    <a href="/News/Video.aspx?sitemapid=<%=parentSitemapid %>&subid=<%=item.SitemapId %>">
                        <li id="<%=item.SitemapId %>">
                            <%=item.SitemapName %></li></a>
                    <%
                      } %>
                    <p class="clear">
                    </p>
                </ul>
                <p class="select_num">
                    每页显示
                    <asp:DropDownList runat="server" ID="ddlPageSize" AutoPostBack="True" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
                        <asp:ListItem Text="4" Value="4" />
                        <asp:ListItem Text="8" Value="8" Selected="True" />
                        <asp:ListItem Text="12" Value="12" />
                        <asp:ListItem Text="16" Value="16" />
                    </asp:DropDownList>
                    条
                </p>
                <p class="clear">
                </p>
            </div>
            <div class="video_list">
                <div>
                    <ul>
                        <asp:Repeater runat="server" ID="repMain">
                            <ItemTemplate>
                                <li <%#(Container.ItemIndex+1)%4==0?"class='nomarginr'":"" %>>
                                    <p class="pic">
                                        <a href="/News/VideoDetail.aspx?tid=<%#(Container.DataItem as TextInfo).TextInfoId %>">
                                            <img src="<%#AttachInfoBLL.Instance.GetFirstVideoCover((Container.DataItem as TextInfo).TextInfoId) %>" /><span><img
                                                src="/!images/video_play.png" /></span></a></p>
                                    <p class="video_titel">
                                        <a href="/News/VideoDetail.aspx?tid=<%#(Container.DataItem as TextInfo).TextInfoId %>"
                                            title="<%#(Container.DataItem as TextInfo).Title %>">
                                            <%#TextInfoBLL.Instance.CutString((Container.DataItem as TextInfo).Title,27,"...")%>
                                        </a>
                                    </p>
                                    <p>
                                        播出时间：
                                        <%#(Container.DataItem as TextInfo).PublishTime.ToString("yyyy.MM.dd") %>&nbsp;&nbsp;&nbsp;<br />
                                        来源：
                                        <%#(Container.DataItem as TextInfo).Author%>
                                    </p>
                                    <p>
                                        <a href="/News/VideoDetail.aspx?tid=<%#(Container.DataItem as TextInfo).TextInfoId %>"
                                            title="<%#(Container.DataItem as TextInfo).Content %>">
                                            <%#TextInfoBLL.Instance.CutString((Container.DataItem as TextInfo).Content, 40, "...")%>
                                        </a>
                                    </p>
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                        <%--<li>
                            <p>
                                <a href="../News/VideoDetailed.aspx">
                                    <img src="/!images/video_pic1.jpg" /><span><img src="/!images/video_play.png" /></span></a></p>
                            <p class="video_titel">
                                <a href="../News/VideoDetailed.aspx">柳传志“布道”20名成都CEO当学生</a></p>
                            <p>
                                2012.12 CCTV 45'57''</p>
                            <p>
                                <a href="../News/VideoDetailed.aspx">当年轻的企业家告诉柳传志当前在中国创业是多么艰难时，柳传志不禁要...</a></p>
                        </li>--%>
                    </ul>
                </div>
                <div class="pages">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页"
                        NextPageText="下一页" PrevPageText="上一页" ShowPageIndexBox="Never" UrlPaging="True"
                        OnPageChanged="AspNetPager1_PageChanged" PagingButtonSpacing="0px" CurrentPageButtonStyle="color:#3e69a4;">
                    </webdiyer:AspNetPager>
                </div>
                <p class="clear">
                </p>
            </div>
            <p class="clear">
            </p>
        </div>
    </div>
</asp:Content>
